package com.wlgc.mapper;

import com.wlgc.entity.ChatList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ChatListMapper {

    //根据发送方uid查询聊天列表
    @Select("select * from chat_list where from_uid = #{fromUid}")
    List<ChatList> getByfromUid(Long fromUid);
}
